package v3.object.ship.weapon;

public abstract class aWeapon implements iWeapon
{
	double powerAgainstShieldMult;
	double powerAgainstHulldMult=50;
	double powerAgainstShieldAdd=20;
	double powerAgainstHulldAdd=35;
	double efficency=1;
	
	public aWeapon(double powerAgainstShieldMult, double powerAgainstHulldMult, double powerAgainstShieldAdd, double powerAgainstHulldAdd)
	{
		super();
		this.powerAgainstShieldMult = powerAgainstShieldMult;
		this.powerAgainstHulldMult = powerAgainstHulldMult;
		this.powerAgainstShieldAdd = powerAgainstShieldAdd;
		this.powerAgainstHulldAdd = powerAgainstHulldAdd;
	}

	public double getPowerAgainstShieldMult()
	{
		return powerAgainstShieldMult*efficency;
	}

	public void setPowerAgainstShieldMult(double powerAgainstShieldMult)
	{
		this.powerAgainstShieldMult = powerAgainstShieldMult;
	}

	public double getPowerAgainstHulldMult()
	{
		return powerAgainstHulldMult;
	}

	public void setPowerAgainstHulldMult(double powerAgainstHulldMult)
	{
		this.powerAgainstHulldMult = powerAgainstHulldMult;
	}

	public double getPowerAgainstShieldAdd()
	{
		return powerAgainstShieldAdd*efficency;
	}

	public void setPowerAgainstShieldAdd(double powerAgainstShieldAdd)
	{
		this.powerAgainstShieldAdd = powerAgainstShieldAdd;
	}

	public double getPowerAgainstHulldAdd()
	{
		return powerAgainstHulldAdd;
	}

	public void setPowerAgainstHulldAdd(double powerAgainstHulldAdd)
	{
		this.powerAgainstHulldAdd = powerAgainstHulldAdd;
	}

	public double getEfficency()
	{
		return efficency;
	}

	public void setEfficency(double efficency)
	{
		this.efficency = efficency;
	}
	
	
}
